 
import * as  GIO from '../assets/plugins/map3d/js/gio.module.js';
$(function(){
    var container = document.getElementById( "earth" );
     var controller = new GIO.Controller( container );
    controller.configure({
        //control:{ stats: false ,autoRotation:true,initCountry:'',countryMesh:false,sphereRadius:50},//static show
        color:{
            background:0xff0000,
            //sphereMaterial:require('../assets/plugins/map3d/textures/planets/bg.jpg')
            backgroundImg: require('../assets/plugins/map3d/textures/planets/bg.jpg')
        },
        control:{ stats: true ,initCountry:'CN',disabledInteration:false,countryMesh:true,openaxesHelper:true}//dev
    }); 
    
 
    controller.init();
    controller.resizeUpdate();
    window._gio = controller;
    
    //company
    _gio.drawLightBasr([
        {name:'广东',value: 60,point:[113.280637, 23.125178]},
        {name:'广西',value: 60,point:[108.320004, 22.82402]},
        {name:'海南',value: 60,point:[110.33119, 20.031971]}
    ]);

    //staff
    _gio.drawPoints ([{
        position: [112.982279,28.19409],
        userData: {title: 'Point Test',userId: 'staff001'}
    }],(p)=>{
        console.log(p);
    });
    //_gio.rotateToTargetCoordinate({lon: 112.982279,lat: 28.19409})//湖南

   _gio.drawLines([
        {
            title:'one line',
            position:[[143.9101619813795, 44.174099839853739],
                [143.64800744036287, 50.747600409541519],
                [128.34971642467661, 38.61224294692785],[112.982279,28.19409],
                [113.280637, 23.125178]]
            }
        ]);
});